package com.wn.inventory;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.amqp.rabbit.annotation.EnableRabbit;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * @ author     ：NST
 * @ date       ：Created in 2022/10/19 15:24
 * @ description：启动类
 * @ modified By：
 * @ version:
 */
@EnableFeignClients   //启动OpenFeign远程调用
@EnableDiscoveryClient  //启用nacos客户端
@EnableTransactionManagement //启动事务控制
@EnableRabbit //启用消息队列
@SpringBootApplication
@MapperScan(basePackages = "com.wn.inventory.mapper")
public class InventoryApplication {
    public static void main(String[] args) {
        SpringApplication.run(InventoryApplication.class, args);
    }
}
